﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;

    public class xucSalaryByEmployee : Common.xucBase
    {
        private GridBand bandAllowance;
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarEditItem barEditItem1;
        private BarManager barManager1;
        private BarEditItem bbeEmployeeName;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiReload;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private BandedGridColumn colAdvance;
        private BandedGridColumn colAllowance;
        private BandedGridColumn colAllowanceInsurance;
        private BandedGridColumn colAssignment;
        private BandedGridColumn colAssignmentDebt;
        private BandedGridColumn colAssignmentPay;
        private BandedGridColumn colBasicSalary;
        private BandedGridColumn colCoefficientSalary;
        private BandedGridColumn colDependMoney;
        private GridColumn colEmployeeCode;
        private GridColumn colFirstName;
        private BandedGridColumn colHealthInsurance;
        private BandedGridColumn colHealthInsurance1;
        private BandedGridColumn colIncomeTax;
        private BandedGridColumn colIncomeTaxMoney;
        private BandedGridColumn colIncomeTaxRemain;
        private BandedGridColumn colInsurance;
        private BandedGridColumn colInsurance1;
        private BandedGridColumn colInsuranceSalary;
        private GridColumn colLastName;
        private BandedGridColumn colLateEarlyHour;
        private BandedGridColumn colMinusLateEarly;
        private BandedGridColumn colMinusMoney;
        private BandedGridColumn colMonth;
        private BandedGridColumn colNumberDepend;
        private BandedGridColumn colRemainSalary;
        private BandedGridColumn colSalary;
        private BandedGridColumn colSalaryDebt;
        private BandedGridColumn colSalaryMinus;
        private BandedGridColumn colSalaryMinusBefore;
        private BandedGridColumn colSalaryPay;
        private BandedGridColumn colSalaryPlus;
        private BandedGridColumn colSalaryPlusBefore;
        private BandedGridColumn colSalaryTableListID;
        private BandedGridColumn colSalaryTableListName;
        private BandedGridColumn colSocialInsurance;
        private BandedGridColumn colSocialInsurance1;
        private BandedGridColumn colStipulatedTime;
        private BandedGridColumn colTotalSalary;
        private BandedGridColumn colUnemploymentInsurance;
        private BandedGridColumn colUnemploymentInsurance1;
        private BandedGridColumn colUnion;
        private BandedGridColumn colUnion1;
        private BandedGridColumn colWorkHour;
        private BandedGridColumn colWorkSalary;
        private BandedGridColumn colWorkSalary1;
        private BandedGridColumn colYear;
        private IContainer components = null;
        private AdvBandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand10;
        private GridBand gridBand11;
        private GridBand gridBand12;
        private GridBand gridBand2;
        private GridBand gridBand3;
        private GridBand gridBand4;
        private GridBand gridBand5;
        private GridBand gridBand6;
        private GridBand gridBand7;
        private GridBand gridBand8;
        private GridBand gridBand9;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private string m_EmployeeCode = "";
        private int m_Month = 0;
        private Guid m_SalaryTableListID = Guid.Empty;
        private Guid m_TimeKeeperTableListIdD = Guid.Empty;
        private int m_Year = 0;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemGridLookUpEdit repEmployee;
        private RepositoryItemComboBox repEmployeeName;
        private RepositoryItemTimeEdit repMonth;
        private GridView repositoryItemGridLookUpEdit1View;
        private RepositoryItemTimeEdit repYear;

        public event ClosedHander Closed;

        public xucSalaryByEmployee()
        {
            this.InitializeComponent();
            this.InitMultiLanguages();
            this.Init();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.RaiseClosedHander();
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Lương", "Xuất");
            base.Export();
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            SYS_LOG.Insert("Bảng Lương", "In");
            xfmReport report = new xfmReport();
            rptSalaryByEmployee xtraReport = new rptSalaryByEmployee(this.m_EmployeeCode, this.m_Year);
            report.SetTitle("Bảng Lương Nh\x00e2n Vi\x00ean Năm " + this.m_Year.ToString());
            report.ShowPrintPreview(xtraReport);
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadSalaryYear();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void gbList_FocusedRowChanged(object sender, FocusedRowChangedEventArgs e)
        {
        }

        private void gbList_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                base.DoShowMenu(this.gbList.CalcHitInfo(new Point(e.X, e.Y)), this.gbList);
            }
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.repEmployee.EditValueChanging += new ChangingEventHandler(this.repEmployee_EditValueChanging);
            this.repEmployee.EditValueChanged += new EventHandler(this.repEmployee_EditValueChanged);
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.LoadEmployeeYear();
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            SuperToolTip tip2 = new SuperToolTip();
            ToolTipItem item2 = new ToolTipItem();
            SuperToolTip tip3 = new SuperToolTip();
            ToolTipItem item3 = new ToolTipItem();
            SuperToolTip tip4 = new SuperToolTip();
            ToolTipItem item4 = new ToolTipItem();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucSalaryByEmployee));
            StyleFormatCondition condition = new StyleFormatCondition();
            StyleFormatCondition condition2 = new StyleFormatCondition();
            this.colSalaryDebt = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colSalaryPay = new BandedGridColumn();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.barEditItem1 = new BarEditItem();
            this.repEmployee = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit1View = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.bbeEmployeeName = new BarEditItem();
            this.repEmployeeName = new RepositoryItemComboBox();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiFormula = new BarButtonItem();
            this.repMonth = new RepositoryItemTimeEdit();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gcList = new GridControl();
            this.gbList = new AdvBandedGridView();
            this.colSalaryTableListID = new BandedGridColumn();
            this.colSalaryTableListName = new BandedGridColumn();
            this.colMonth = new BandedGridColumn();
            this.colYear = new BandedGridColumn();
            this.colCoefficientSalary = new BandedGridColumn();
            this.colBasicSalary = new BandedGridColumn();
            this.colInsuranceSalary = new BandedGridColumn();
            this.colAllowanceInsurance = new BandedGridColumn();
            this.colAllowance = new BandedGridColumn();
            this.colTotalSalary = new BandedGridColumn();
            this.colStipulatedTime = new BandedGridColumn();
            this.colWorkHour = new BandedGridColumn();
            this.colLateEarlyHour = new BandedGridColumn();
            this.colMinusLateEarly = new BandedGridColumn();
            this.colMinusMoney = new BandedGridColumn();
            this.colAssignment = new BandedGridColumn();
            this.colAssignmentPay = new BandedGridColumn();
            this.colAssignmentDebt = new BandedGridColumn();
            this.colWorkSalary = new BandedGridColumn();
            this.colSocialInsurance = new BandedGridColumn();
            this.colHealthInsurance = new BandedGridColumn();
            this.colUnemploymentInsurance = new BandedGridColumn();
            this.colInsurance = new BandedGridColumn();
            this.colSocialInsurance1 = new BandedGridColumn();
            this.colHealthInsurance1 = new BandedGridColumn();
            this.colUnemploymentInsurance1 = new BandedGridColumn();
            this.colInsurance1 = new BandedGridColumn();
            this.colSalaryPlusBefore = new BandedGridColumn();
            this.colSalaryMinusBefore = new BandedGridColumn();
            this.colWorkSalary1 = new BandedGridColumn();
            this.colIncomeTax = new BandedGridColumn();
            this.colNumberDepend = new BandedGridColumn();
            this.colDependMoney = new BandedGridColumn();
            this.colIncomeTaxRemain = new BandedGridColumn();
            this.colIncomeTaxMoney = new BandedGridColumn();
            this.colRemainSalary = new BandedGridColumn();
            this.colAdvance = new BandedGridColumn();
            this.colUnion = new BandedGridColumn();
            this.colSalaryPlus = new BandedGridColumn();
            this.colSalaryMinus = new BandedGridColumn();
            this.colSalary = new BandedGridColumn();
            this.colUnion1 = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.gridBand3 = new GridBand();
            this.gridBand12 = new GridBand();
            this.bandAllowance = new GridBand();
            this.gridBand5 = new GridBand();
            this.gridBand4 = new GridBand();
            this.gridBand6 = new GridBand();
            this.gridBand7 = new GridBand();
            this.gridBand8 = new GridBand();
            this.gridBand9 = new GridBand();
            this.gridBand10 = new GridBand();
            this.gridBand11 = new GridBand();
            this.gridBand1 = new GridBand();
            this.repCalculator.BeginInit();
            this.barManager1.BeginInit();
            this.repEmployee.BeginInit();
            this.repositoryItemGridLookUpEdit1View.BeginInit();
            this.repEmployeeName.BeginInit();
            this.repYear.BeginInit();
            this.imageCollection2.BeginInit();
            this.repMonth.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            base.SuspendLayout();
            this.colSalaryDebt.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryDebt.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryDebt.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryDebt.Caption = "C\x00f2n nợ lại";
            this.colSalaryDebt.ColumnEdit = this.repCalculator;
            this.colSalaryDebt.FieldName = "SalaryDebt";
            this.colSalaryDebt.Name = "colSalaryDebt";
            this.colSalaryDebt.OptionsColumn.ReadOnly = true;
            this.colSalaryDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryDebt.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.EditFormat.FormatString = "\"{0:##,##0}\"";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colSalaryPay.AppearanceCell.BackColor = Color.Ivory;
            this.colSalaryPay.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPay.AppearanceHeader.ForeColor = Color.Brown;
            this.colSalaryPay.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colSalaryPay.ColumnEdit = this.repCalculator;
            this.colSalaryPay.FieldName = "SalaryPay";
            this.colSalaryPay.Name = "colSalaryPay";
            this.colSalaryPay.OptionsColumn.ReadOnly = true;
            this.colSalaryPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPay.Visible = true;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiPrint, this.bbiReload, this.bbiFormula, this.bbiClose, this.bbeYear, this.bbeEmployeeName, this.bbiExport, this.barEditItem1 });
            this.barManager1.MaxItemId = 20;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repMonth, this.repYear, this.repEmployeeName, this.repEmployee });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.barEditItem1, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeEmployeeName, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.barEditItem1.Caption = "Chọn Nh\x00e2n Vi\x00ean:";
            this.barEditItem1.Edit = this.repEmployee;
            this.barEditItem1.Id = 0x13;
            this.barEditItem1.Name = "barEditItem1";
            this.barEditItem1.Width = 90;
            this.repEmployee.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployee.Appearance.Options.UseFont = true;
            this.repEmployee.AutoHeight = false;
            this.repEmployee.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployee.Name = "repEmployee";
            this.repEmployee.NullText = "[Chọn nh\x00e2n vi\x00ean]";
            this.repEmployee.View = this.repositoryItemGridLookUpEdit1View;
            this.repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.colEmployeeCode, this.colFirstName, this.colLastName });
            this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View";
            this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowAutoFilterRow = true;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
            this.colEmployeeCode.Caption = "M\x00e3";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.bbeEmployeeName.Caption = "T\x00ean Nh\x00e2n Vi\x00ean:";
            this.bbeEmployeeName.Edit = this.repEmployeeName;
            this.bbeEmployeeName.Id = 0x10;
            this.bbeEmployeeName.Name = "bbeEmployeeName";
            this.bbeEmployeeName.Width = 160;
            this.repEmployeeName.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployeeName.Appearance.Options.UseFont = true;
            this.repEmployeeName.AutoHeight = false;
            this.repEmployeeName.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployeeName.Name = "repEmployeeName";
            this.repEmployeeName.NullText = "[T\x00ean nh\x00e2n vi\x00ean]";
            this.repEmployeeName.ReadOnly = true;
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name = "bbiPrint";
            item.Text = "Ctrl+P";
            tip.Items.Add(item);
            this.bbiPrint.SuperTip = tip;
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.ItemShortcut = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.Name = "bbiExport";
            item2.Text = "Ctrl+E";
            tip2.Items.Add(item2);
            this.bbiExport.SuperTip = tip2;
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiReload.Name = "bbiReload";
            item3.Text = "F5";
            tip3.Items.Add(item3);
            this.bbiReload.SuperTip = tip3;
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.ItemShortcut = new BarShortcut(Keys.F10);
            this.bbiClose.Name = "bbiClose";
            item4.Text = "F10";
            tip4.Items.Add(item4);
            this.bbiClose.SuperTip = tip4;
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.bbiFormula.Caption = "Thiết Lập C\x00f4ng Thức";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.repMonth.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Name = "repMonth";
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0, 0x1a);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x431, 0x261);
            this.gcList.TabIndex = 6;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.BandPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.BandPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand2, this.gridBand3, this.gridBand12, this.bandAllowance, this.gridBand5, this.gridBand4, this.gridBand6, this.gridBand7, this.gridBand8, this.gridBand9, this.gridBand10, this.gridBand11, this.gridBand1 });
            this.gbList.ColumnPanelRowHeight = 0x30;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.colSalaryTableListID, this.colSalaryTableListName, this.colMonth, this.colYear, this.colCoefficientSalary, this.colBasicSalary, this.colInsuranceSalary, this.colAllowanceInsurance, this.colAllowance, this.colTotalSalary, this.colAssignment, this.colAssignmentPay, this.colAssignmentDebt, this.colStipulatedTime, this.colWorkHour, this.colLateEarlyHour, 
                this.colMinusLateEarly, this.colMinusMoney, this.colWorkSalary, this.colSocialInsurance, this.colHealthInsurance, this.colUnemploymentInsurance, this.colInsurance, this.colSocialInsurance1, this.colHealthInsurance1, this.colUnemploymentInsurance1, this.colInsurance1, this.colSalaryPlusBefore, this.colSalaryMinusBefore, this.colWorkSalary1, this.colIncomeTax, this.colNumberDepend, 
                this.colDependMoney, this.colIncomeTaxRemain, this.colIncomeTaxMoney, this.colRemainSalary, this.colAdvance, this.colUnion, this.colUnion1, this.colSalaryPlus, this.colSalaryMinus, this.colSalary, this.colSalaryPay, this.colSalaryDebt
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            condition.Appearance.ForeColor = Color.Red;
            condition.Appearance.Options.UseForeColor = true;
            condition.Column = this.colSalaryDebt;
            condition.Condition = FormatConditionEnum.Greater;
            condition.Value1 = 0;
            condition2.Appearance.ForeColor = Color.Red;
            condition2.Appearance.Options.UseForeColor = true;
            condition2.Column = this.colSalaryPay;
            condition2.Condition = FormatConditionEnum.Equal;
            condition2.Value1 = "0";
            this.gbList.FormatConditions.AddRange(new StyleFormatCondition[] { condition, condition2 });
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.GroupSummary.AddRange(new GridSummaryItem[] { 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", null, " - Tổng thực l\x00e3nh: {0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "CoefficientSalary", this.colCoefficientSalary, "{0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "BasicSalary", this.colBasicSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "InsuranceSalary", this.colInsuranceSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "AllowanceInsurance", this.colAllowanceInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Allowance", this.colAllowance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "TotalSalary", this.colTotalSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "StipulatedTime", this.colStipulatedTime, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkHour", this.colWorkHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "LateEarlyHour", this.colLateEarlyHour, ""), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusLateEarly", this.colMinusLateEarly, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "MinusMoney", this.colMinusMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "WorkSalary", this.colWorkSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SocialInsurance", this.colSocialInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "HealthInsurance", this.colHealthInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "UnemploymentInsurance", this.colUnemploymentInsurance, "{0:##,##0}"), 
                new GridGroupSummaryItem(SummaryItemType.Sum, "Insurance", this.colInsurance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Union", this.colUnion, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTax", this.colIncomeTax, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "NumberDepend", this.colNumberDepend, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "DependMoney", this.colDependMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxRemain", this.colIncomeTaxRemain, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "IncomeTaxMoney", this.colIncomeTaxMoney, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "RemainSalary", this.colRemainSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Advance", this.colAdvance, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Assignment", this.colAssignment, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPlus", this.colSalaryPlus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryMinus", this.colSalaryMinus, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "Salary", this.colSalary, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryPay", this.colSalaryPay, "{0:##,##0}"), new GridGroupSummaryItem(SummaryItemType.Sum, "SalaryDebt", this.colSalaryDebt, "{0:##,##0}")
             });
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsPrint.AutoWidth = false;
            this.gbList.OptionsPrint.ExpandAllDetails = true;
            this.gbList.OptionsPrint.PrintPreview = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.FocusedRowChanged += new FocusedRowChangedEventHandler(this.gbList_FocusedRowChanged);
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gbList.MouseDown += new MouseEventHandler(this.gbList_MouseDown);
            this.colSalaryTableListID.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colSalaryTableListID.AppearanceHeader.Options.UseFont = true;
            this.colSalaryTableListID.Caption = "M\x00e3 bảng lương";
            this.colSalaryTableListID.FieldName = "SalaryTableListID";
            this.colSalaryTableListID.Name = "colSalaryTableListID";
            this.colSalaryTableListID.OptionsColumn.AllowEdit = false;
            this.colSalaryTableListID.OptionsColumn.ReadOnly = true;
            this.colSalaryTableListID.Width = 0x43;
            this.colSalaryTableListName.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colSalaryTableListName.AppearanceHeader.Options.UseFont = true;
            this.colSalaryTableListName.Caption = "T\x00ean bảng lương";
            this.colSalaryTableListName.FieldName = "SalaryTableListName";
            this.colSalaryTableListName.Name = "colSalaryTableListName";
            this.colSalaryTableListName.OptionsColumn.ReadOnly = true;
            this.colSalaryTableListName.Visible = true;
            this.colSalaryTableListName.Width = 0xc0;
            this.colMonth.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colMonth.AppearanceHeader.Options.UseFont = true;
            this.colMonth.Caption = "Th\x00e1ng";
            this.colMonth.FieldName = "Month";
            this.colMonth.Name = "colMonth";
            this.colMonth.OptionsColumn.AllowEdit = false;
            this.colMonth.OptionsColumn.ReadOnly = true;
            this.colMonth.Width = 0x37;
            this.colYear.Caption = "Năm";
            this.colYear.FieldName = "Year";
            this.colYear.Name = "colYear";
            this.colYear.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colYear.OptionsColumn.ReadOnly = true;
            this.colCoefficientSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colCoefficientSalary.AppearanceCell.Options.UseBackColor = true;
            this.colCoefficientSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colCoefficientSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colCoefficientSalary.Caption = "Hệ số lương";
            this.colCoefficientSalary.ColumnEdit = this.repCalculator;
            this.colCoefficientSalary.FieldName = "CoefficientSalary";
            this.colCoefficientSalary.Name = "colCoefficientSalary";
            this.colCoefficientSalary.OptionsColumn.ReadOnly = true;
            this.colCoefficientSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colCoefficientSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colCoefficientSalary.Visible = true;
            this.colCoefficientSalary.Width = 0x36;
            this.colBasicSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colBasicSalary.AppearanceCell.Options.UseBackColor = true;
            this.colBasicSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colBasicSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colBasicSalary.Caption = "Lương căn bản";
            this.colBasicSalary.ColumnEdit = this.repCalculator;
            this.colBasicSalary.FieldName = "BasicSalary";
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.OptionsColumn.ReadOnly = true;
            this.colBasicSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colBasicSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colBasicSalary.Visible = true;
            this.colBasicSalary.Width = 0x4c;
            this.colInsuranceSalary.AppearanceCell.BackColor = Color.MintCream;
            this.colInsuranceSalary.AppearanceCell.Options.UseBackColor = true;
            this.colInsuranceSalary.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsuranceSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colInsuranceSalary.Caption = "LCB đ\x00f3ng BH";
            this.colInsuranceSalary.ColumnEdit = this.repCalculator;
            this.colInsuranceSalary.FieldName = "InsuranceSalary";
            this.colInsuranceSalary.Name = "colInsuranceSalary";
            this.colInsuranceSalary.OptionsColumn.ReadOnly = true;
            this.colInsuranceSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsuranceSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsuranceSalary.Visible = true;
            this.colAllowanceInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colAllowanceInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowanceInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colAllowanceInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowanceInsurance.Caption = "Phụ cấp đ\x00f3ng BH";
            this.colAllowanceInsurance.ColumnEdit = this.repCalculator;
            this.colAllowanceInsurance.FieldName = "AllowanceInsurance";
            this.colAllowanceInsurance.Name = "colAllowanceInsurance";
            this.colAllowanceInsurance.OptionsColumn.ReadOnly = true;
            this.colAllowanceInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowanceInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowanceInsurance.Visible = true;
            this.colAllowance.AppearanceCell.BackColor = Color.SeaShell;
            this.colAllowance.AppearanceCell.Options.UseBackColor = true;
            this.colAllowance.AppearanceHeader.ForeColor = Color.Red;
            this.colAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.colAllowance.Caption = "Tổng phụ cấp lương";
            this.colAllowance.ColumnEdit = this.repCalculator;
            this.colAllowance.FieldName = "Allowance";
            this.colAllowance.Name = "colAllowance";
            this.colAllowance.OptionsColumn.ReadOnly = true;
            this.colAllowance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAllowance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAllowance.Visible = true;
            this.colAllowance.Width = 0x40;
            this.colTotalSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colTotalSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colTotalSalary.AppearanceCell.Options.UseBackColor = true;
            this.colTotalSalary.AppearanceCell.Options.UseFont = true;
            this.colTotalSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colTotalSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colTotalSalary.Caption = "Tổng lương";
            this.colTotalSalary.ColumnEdit = this.repCalculator;
            this.colTotalSalary.FieldName = "TotalSalary";
            this.colTotalSalary.Name = "colTotalSalary";
            this.colTotalSalary.OptionsColumn.ReadOnly = true;
            this.colTotalSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotalSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotalSalary.Visible = true;
            this.colTotalSalary.Width = 0x4c;
            this.colStipulatedTime.AppearanceCell.BackColor = Color.GhostWhite;
            this.colStipulatedTime.AppearanceCell.Options.UseBackColor = true;
            this.colStipulatedTime.AppearanceHeader.ForeColor = Color.Purple;
            this.colStipulatedTime.AppearanceHeader.Options.UseForeColor = true;
            this.colStipulatedTime.Caption = "Số giờ quy định";
            this.colStipulatedTime.ColumnEdit = this.repCalculator;
            this.colStipulatedTime.FieldName = "StipulatedTime";
            this.colStipulatedTime.Name = "colStipulatedTime";
            this.colStipulatedTime.OptionsColumn.ReadOnly = true;
            this.colStipulatedTime.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colStipulatedTime.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colStipulatedTime.Visible = true;
            this.colStipulatedTime.Width = 0x33;
            this.colWorkHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colWorkHour.AppearanceCell.Options.UseBackColor = true;
            this.colWorkHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colWorkHour.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkHour.Caption = "Số giờ c\x00f4ng";
            this.colWorkHour.ColumnEdit = this.repCalculator;
            this.colWorkHour.FieldName = "WorkHour";
            this.colWorkHour.Name = "colWorkHour";
            this.colWorkHour.OptionsColumn.ReadOnly = true;
            this.colWorkHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkHour.Visible = true;
            this.colWorkHour.Width = 0x2e;
            this.colLateEarlyHour.AppearanceCell.BackColor = Color.GhostWhite;
            this.colLateEarlyHour.AppearanceCell.Options.UseBackColor = true;
            this.colLateEarlyHour.AppearanceHeader.ForeColor = Color.Purple;
            this.colLateEarlyHour.AppearanceHeader.Options.UseForeColor = true;
            this.colLateEarlyHour.Caption = "Số giờ đi trể về sớm";
            this.colLateEarlyHour.ColumnEdit = this.repCalculator;
            this.colLateEarlyHour.FieldName = "LateEarlyHour";
            this.colLateEarlyHour.Name = "colLateEarlyHour";
            this.colLateEarlyHour.OptionsColumn.ReadOnly = true;
            this.colLateEarlyHour.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colLateEarlyHour.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colLateEarlyHour.Visible = true;
            this.colLateEarlyHour.Width = 0x3a;
            this.colMinusLateEarly.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusLateEarly.AppearanceCell.Options.UseBackColor = true;
            this.colMinusLateEarly.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusLateEarly.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusLateEarly.Caption = "Trừ tiền đi trể về sớm";
            this.colMinusLateEarly.ColumnEdit = this.repCalculator;
            this.colMinusLateEarly.FieldName = "MinusLateEarly";
            this.colMinusLateEarly.Name = "colMinusLateEarly";
            this.colMinusLateEarly.OptionsColumn.ReadOnly = true;
            this.colMinusLateEarly.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusLateEarly.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusLateEarly.Visible = true;
            this.colMinusLateEarly.Width = 0x3a;
            this.colMinusMoney.AppearanceCell.BackColor = Color.GhostWhite;
            this.colMinusMoney.AppearanceCell.Options.UseBackColor = true;
            this.colMinusMoney.AppearanceHeader.ForeColor = Color.Purple;
            this.colMinusMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colMinusMoney.Caption = "Trừ ng\x00e0y nghỉ";
            this.colMinusMoney.ColumnEdit = this.repCalculator;
            this.colMinusMoney.FieldName = "MinusMoney";
            this.colMinusMoney.Name = "colMinusMoney";
            this.colMinusMoney.OptionsColumn.ReadOnly = true;
            this.colMinusMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colMinusMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colMinusMoney.Visible = true;
            this.colMinusMoney.Width = 0x47;
            this.colAssignment.AppearanceCell.BackColor = Color.Azure;
            this.colAssignment.AppearanceCell.Options.UseBackColor = true;
            this.colAssignment.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignment.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignment.Caption = "C\x00f4ng t\x00e1c ph\x00ed";
            this.colAssignment.ColumnEdit = this.repCalculator;
            this.colAssignment.FieldName = "Assignment";
            this.colAssignment.Name = "colAssignment";
            this.colAssignment.OptionsColumn.ReadOnly = true;
            this.colAssignment.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignment.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignment.Visible = true;
            this.colAssignmentPay.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentPay.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentPay.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentPay.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentPay.Caption = "Đ\x00e3 thanh to\x00e1n";
            this.colAssignmentPay.ColumnEdit = this.repCalculator;
            this.colAssignmentPay.FieldName = "AssignmentPay";
            this.colAssignmentPay.Name = "colAssignmentPay";
            this.colAssignmentPay.OptionsColumn.ReadOnly = true;
            this.colAssignmentPay.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentPay.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentPay.Visible = true;
            this.colAssignmentDebt.AppearanceCell.BackColor = Color.Azure;
            this.colAssignmentDebt.AppearanceCell.Options.UseBackColor = true;
            this.colAssignmentDebt.AppearanceHeader.ForeColor = Color.Blue;
            this.colAssignmentDebt.AppearanceHeader.Options.UseForeColor = true;
            this.colAssignmentDebt.Caption = "C\x00f2n lại";
            this.colAssignmentDebt.ColumnEdit = this.repCalculator;
            this.colAssignmentDebt.FieldName = "AssignmentDebt";
            this.colAssignmentDebt.Name = "colAssignmentDebt";
            this.colAssignmentDebt.OptionsColumn.ReadOnly = true;
            this.colAssignmentDebt.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAssignmentDebt.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAssignmentDebt.Visible = true;
            this.colWorkSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary.Caption = "Tiền lương";
            this.colWorkSalary.ColumnEdit = this.repCalculator;
            this.colWorkSalary.FieldName = "WorkSalary";
            this.colWorkSalary.Name = "colWorkSalary";
            this.colWorkSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary.Visible = true;
            this.colSocialInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance.Caption = "BHXH";
            this.colSocialInsurance.ColumnEdit = this.repCalculator;
            this.colSocialInsurance.FieldName = "SocialInsurance";
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance.Visible = true;
            this.colHealthInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance.Caption = "BHYT";
            this.colHealthInsurance.ColumnEdit = this.repCalculator;
            this.colHealthInsurance.FieldName = "HealthInsurance";
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance.Visible = true;
            this.colUnemploymentInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance.Caption = "BHTN";
            this.colUnemploymentInsurance.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance.FieldName = "UnemploymentInsurance";
            this.colUnemploymentInsurance.Name = "colUnemploymentInsurance";
            this.colUnemploymentInsurance.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance.Visible = true;
            this.colInsurance.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance.ColumnEdit = this.repCalculator;
            this.colInsurance.FieldName = "Insurance";
            this.colInsurance.Name = "colInsurance";
            this.colInsurance.OptionsColumn.ReadOnly = true;
            this.colInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance.Visible = true;
            this.colSocialInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colSocialInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colSocialInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colSocialInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance1.Caption = "BHXH";
            this.colSocialInsurance1.ColumnEdit = this.repCalculator;
            this.colSocialInsurance1.FieldName = "SocialInsurance1";
            this.colSocialInsurance1.Name = "colSocialInsurance1";
            this.colSocialInsurance1.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance1.Visible = true;
            this.colHealthInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colHealthInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colHealthInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colHealthInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance1.Caption = "BHYT";
            this.colHealthInsurance1.ColumnEdit = this.repCalculator;
            this.colHealthInsurance1.FieldName = "HealthInsurance1";
            this.colHealthInsurance1.Name = "colHealthInsurance1";
            this.colHealthInsurance1.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance1.Visible = true;
            this.colUnemploymentInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colUnemploymentInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colUnemploymentInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colUnemploymentInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance1.Caption = "BHTN";
            this.colUnemploymentInsurance1.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance1.FieldName = "UnemploymentInsurance1";
            this.colUnemploymentInsurance1.Name = "colUnemploymentInsurance1";
            this.colUnemploymentInsurance1.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance1.Visible = true;
            this.colInsurance1.AppearanceCell.BackColor = Color.MintCream;
            this.colInsurance1.AppearanceCell.Options.UseBackColor = true;
            this.colInsurance1.AppearanceHeader.ForeColor = Color.DarkOliveGreen;
            this.colInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance1.Caption = "BHXH, BHYT, BHTN";
            this.colInsurance1.ColumnEdit = this.repCalculator;
            this.colInsurance1.FieldName = "Insurance1";
            this.colInsurance1.Name = "colInsurance1";
            this.colInsurance1.OptionsColumn.ReadOnly = true;
            this.colInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance1.Visible = true;
            this.colSalaryPlusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlusBefore.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryPlusBefore.FieldName = "SalaryPlusBefore";
            this.colSalaryPlusBefore.Name = "colSalaryPlusBefore";
            this.colSalaryPlusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryPlusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlusBefore.Visible = true;
            this.colSalaryMinusBefore.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinusBefore.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinusBefore.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinusBefore.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinusBefore.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinusBefore.ColumnEdit = this.repCalculator;
            this.colSalaryMinusBefore.FieldName = "SalaryMinusBefore";
            this.colSalaryMinusBefore.Name = "colSalaryMinusBefore";
            this.colSalaryMinusBefore.OptionsColumn.ReadOnly = true;
            this.colSalaryMinusBefore.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinusBefore.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinusBefore.Visible = true;
            this.colWorkSalary1.AppearanceCell.BackColor = Color.SeaShell;
            this.colWorkSalary1.AppearanceCell.Options.UseBackColor = true;
            this.colWorkSalary1.AppearanceHeader.ForeColor = Color.Red;
            this.colWorkSalary1.AppearanceHeader.Options.UseForeColor = true;
            this.colWorkSalary1.Caption = "Tổng thu nhập";
            this.colWorkSalary1.ColumnEdit = this.repCalculator;
            this.colWorkSalary1.FieldName = "WorkSalary1";
            this.colWorkSalary1.Name = "colWorkSalary1";
            this.colWorkSalary1.OptionsColumn.ReadOnly = true;
            this.colWorkSalary1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colWorkSalary1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colWorkSalary1.Visible = true;
            this.colIncomeTax.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTax.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTax.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTax.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTax.Caption = "Tiền chịu thuế";
            this.colIncomeTax.ColumnEdit = this.repCalculator;
            this.colIncomeTax.FieldName = "IncomeTax";
            this.colIncomeTax.Name = "colIncomeTax";
            this.colIncomeTax.OptionsColumn.ReadOnly = true;
            this.colIncomeTax.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTax.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTax.Visible = true;
            this.colIncomeTax.Width = 0x53;
            this.colNumberDepend.AppearanceCell.BackColor = Color.Ivory;
            this.colNumberDepend.AppearanceCell.Options.UseBackColor = true;
            this.colNumberDepend.AppearanceHeader.ForeColor = Color.Brown;
            this.colNumberDepend.AppearanceHeader.Options.UseForeColor = true;
            this.colNumberDepend.Caption = "Số người phụ thuộc";
            this.colNumberDepend.ColumnEdit = this.repCalculator;
            this.colNumberDepend.FieldName = "NumberDepend";
            this.colNumberDepend.Name = "colNumberDepend";
            this.colNumberDepend.OptionsColumn.ReadOnly = true;
            this.colNumberDepend.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colNumberDepend.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colNumberDepend.Visible = true;
            this.colNumberDepend.Width = 0x42;
            this.colDependMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colDependMoney.AppearanceCell.Options.UseBackColor = true;
            this.colDependMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colDependMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colDependMoney.Caption = "Tiền chi cho số người phụ thuộc";
            this.colDependMoney.ColumnEdit = this.repCalculator;
            this.colDependMoney.FieldName = "DependMoney";
            this.colDependMoney.Name = "colDependMoney";
            this.colDependMoney.OptionsColumn.ReadOnly = true;
            this.colDependMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colDependMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colDependMoney.Visible = true;
            this.colDependMoney.Width = 0x4d;
            this.colIncomeTaxRemain.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxRemain.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxRemain.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxRemain.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxRemain.Caption = "Số tiền c\x00f2n lại chịu thuế";
            this.colIncomeTaxRemain.ColumnEdit = this.repCalculator;
            this.colIncomeTaxRemain.FieldName = "IncomeTaxRemain";
            this.colIncomeTaxRemain.Name = "colIncomeTaxRemain";
            this.colIncomeTaxRemain.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxRemain.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxRemain.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxRemain.Visible = true;
            this.colIncomeTaxRemain.Width = 0x5d;
            this.colIncomeTaxMoney.AppearanceCell.BackColor = Color.Ivory;
            this.colIncomeTaxMoney.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Italic);
            this.colIncomeTaxMoney.AppearanceCell.Options.UseBackColor = true;
            this.colIncomeTaxMoney.AppearanceCell.Options.UseFont = true;
            this.colIncomeTaxMoney.AppearanceHeader.ForeColor = Color.Brown;
            this.colIncomeTaxMoney.AppearanceHeader.Options.UseForeColor = true;
            this.colIncomeTaxMoney.Caption = "Tiền đ\x00f3ng thuế";
            this.colIncomeTaxMoney.ColumnEdit = this.repCalculator;
            this.colIncomeTaxMoney.FieldName = "IncomeTaxMoney";
            this.colIncomeTaxMoney.Name = "colIncomeTaxMoney";
            this.colIncomeTaxMoney.OptionsColumn.ReadOnly = true;
            this.colIncomeTaxMoney.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colIncomeTaxMoney.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colIncomeTaxMoney.Visible = true;
            this.colIncomeTaxMoney.Width = 0x4e;
            this.colRemainSalary.AppearanceCell.BackColor = Color.Ivory;
            this.colRemainSalary.AppearanceCell.Options.UseBackColor = true;
            this.colRemainSalary.AppearanceHeader.ForeColor = Color.Brown;
            this.colRemainSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colRemainSalary.Caption = "C\x00f2n lại sau khi trừ thuế TNCN";
            this.colRemainSalary.ColumnEdit = this.repCalculator;
            this.colRemainSalary.FieldName = "RemainSalary";
            this.colRemainSalary.Name = "colRemainSalary";
            this.colRemainSalary.OptionsColumn.ReadOnly = true;
            this.colRemainSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colRemainSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colRemainSalary.Visible = true;
            this.colRemainSalary.Width = 80;
            this.colAdvance.AppearanceCell.BackColor = Color.Azure;
            this.colAdvance.AppearanceCell.Options.UseBackColor = true;
            this.colAdvance.AppearanceHeader.ForeColor = Color.Blue;
            this.colAdvance.AppearanceHeader.Options.UseForeColor = true;
            this.colAdvance.Caption = "Tạm ứng";
            this.colAdvance.ColumnEdit = this.repCalculator;
            this.colAdvance.FieldName = "Advance";
            this.colAdvance.Name = "colAdvance";
            this.colAdvance.OptionsColumn.ReadOnly = true;
            this.colAdvance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colAdvance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colAdvance.Visible = true;
            this.colUnion.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion.AppearanceCell.Options.UseBackColor = true;
            this.colUnion.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion.ColumnEdit = this.repCalculator;
            this.colUnion.FieldName = "Union";
            this.colUnion.Name = "colUnion";
            this.colUnion.OptionsColumn.ReadOnly = true;
            this.colUnion.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion.Visible = true;
            this.colUnion.Width = 0x4d;
            this.colSalaryPlus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryPlus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryPlus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryPlus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryPlus.Caption = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.colSalaryPlus.ColumnEdit = this.repCalculator;
            this.colSalaryPlus.FieldName = "SalaryPlus";
            this.colSalaryPlus.Name = "colSalaryPlus";
            this.colSalaryPlus.OptionsColumn.ReadOnly = true;
            this.colSalaryPlus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryPlus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryPlus.Visible = true;
            this.colSalaryMinus.AppearanceCell.BackColor = Color.Azure;
            this.colSalaryMinus.AppearanceCell.Options.UseBackColor = true;
            this.colSalaryMinus.AppearanceHeader.ForeColor = Color.Blue;
            this.colSalaryMinus.AppearanceHeader.Options.UseForeColor = true;
            this.colSalaryMinus.Caption = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.colSalaryMinus.ColumnEdit = this.repCalculator;
            this.colSalaryMinus.FieldName = "SalaryMinus";
            this.colSalaryMinus.Name = "colSalaryMinus";
            this.colSalaryMinus.OptionsColumn.ReadOnly = true;
            this.colSalaryMinus.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalaryMinus.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalaryMinus.Visible = true;
            this.colSalary.AppearanceCell.BackColor = Color.SeaShell;
            this.colSalary.AppearanceCell.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.colSalary.AppearanceCell.Options.UseBackColor = true;
            this.colSalary.AppearanceCell.Options.UseFont = true;
            this.colSalary.AppearanceHeader.ForeColor = Color.Red;
            this.colSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colSalary.Caption = "Tổng thực l\x00e3nh";
            this.colSalary.ColumnEdit = this.repCalculator;
            this.colSalary.FieldName = "Salary";
            this.colSalary.Name = "colSalary";
            this.colSalary.OptionsColumn.ReadOnly = true;
            this.colSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSalary.Visible = true;
            this.colSalary.Width = 0x54;
            this.colUnion1.AppearanceCell.BackColor = Color.Ivory;
            this.colUnion1.AppearanceCell.Options.UseBackColor = true;
            this.colUnion1.AppearanceHeader.ForeColor = Color.Brown;
            this.colUnion1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnion1.Caption = "C\x00f4ng đo\x00e0n";
            this.colUnion1.ColumnEdit = this.repCalculator;
            this.colUnion1.FieldName = "Union1";
            this.colUnion1.Name = "colUnion1";
            this.colUnion1.OptionsColumn.ReadOnly = true;
            this.colUnion1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnion1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnion1.Visible = true;
            this.gridBand2.Columns.Add(this.colSalaryTableListID);
            this.gridBand2.Columns.Add(this.colSalaryTableListName);
            this.gridBand2.Columns.Add(this.colMonth);
            this.gridBand2.Columns.Add(this.colYear);
            this.gridBand2.Fixed = FixedStyle.Left;
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 0xc0;
            this.gridBand3.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand3.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand3.Caption = "Lương căn bản";
            this.gridBand3.Columns.Add(this.colCoefficientSalary);
            this.gridBand3.Columns.Add(this.colBasicSalary);
            this.gridBand3.Name = "gridBand3";
            this.gridBand3.Width = 130;
            this.gridBand12.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand12.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand12.Caption = "Lương đ\x00f3ng bảo hiểm";
            this.gridBand12.Columns.Add(this.colInsuranceSalary);
            this.gridBand12.Columns.Add(this.colAllowanceInsurance);
            this.gridBand12.Name = "gridBand12";
            this.gridBand12.Width = 150;
            this.bandAllowance.AppearanceHeader.ForeColor = Color.Red;
            this.bandAllowance.AppearanceHeader.Options.UseForeColor = true;
            this.bandAllowance.Caption = "Phụ cấp && Tổng lương";
            this.bandAllowance.Columns.Add(this.colAllowance);
            this.bandAllowance.Columns.Add(this.colTotalSalary);
            this.bandAllowance.Name = "bandAllowance";
            this.bandAllowance.Width = 140;
            this.gridBand5.AppearanceHeader.ForeColor = Color.Purple;
            this.gridBand5.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand5.Caption = "Thời gian l\x00e0m việc";
            this.gridBand5.Columns.Add(this.colStipulatedTime);
            this.gridBand5.Columns.Add(this.colWorkHour);
            this.gridBand5.Columns.Add(this.colLateEarlyHour);
            this.gridBand5.Columns.Add(this.colMinusLateEarly);
            this.gridBand5.Columns.Add(this.colMinusMoney);
            this.gridBand5.Name = "gridBand5";
            this.gridBand5.Width = 0x11c;
            this.gridBand4.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand4.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand4.Caption = "C\x00f4ng t\x00e1c ph\x00ed";
            this.gridBand4.Columns.Add(this.colAssignment);
            this.gridBand4.Columns.Add(this.colAssignmentPay);
            this.gridBand4.Columns.Add(this.colAssignmentDebt);
            this.gridBand4.Name = "gridBand4";
            this.gridBand4.Width = 0xe1;
            this.gridBand6.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand6.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand6.Caption = "Tiền lương";
            this.gridBand6.Columns.Add(this.colWorkSalary);
            this.gridBand6.Name = "gridBand6";
            this.gridBand6.Width = 0x4b;
            this.gridBand7.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand7.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand7.Caption = "Bảo hiểm do người lao động đ\x00f3ng";
            this.gridBand7.Columns.Add(this.colSocialInsurance);
            this.gridBand7.Columns.Add(this.colHealthInsurance);
            this.gridBand7.Columns.Add(this.colUnemploymentInsurance);
            this.gridBand7.Columns.Add(this.colInsurance);
            this.gridBand7.Columns.Add(this.colUnion);
            this.gridBand7.Name = "gridBand7";
            this.gridBand7.Width = 0x179;
            this.gridBand8.AppearanceHeader.ForeColor = Color.Green;
            this.gridBand8.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand8.Caption = "Bảo hiểm do người sử dụng lao động đ\x00f3ng";
            this.gridBand8.Columns.Add(this.colSocialInsurance1);
            this.gridBand8.Columns.Add(this.colHealthInsurance1);
            this.gridBand8.Columns.Add(this.colUnemploymentInsurance1);
            this.gridBand8.Columns.Add(this.colInsurance1);
            this.gridBand8.Columns.Add(this.colUnion1);
            this.gridBand8.Name = "gridBand8";
            this.gridBand8.Width = 0x177;
            this.gridBand9.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand9.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand9.Caption = "Trước thuế";
            this.gridBand9.Columns.Add(this.colSalaryPlusBefore);
            this.gridBand9.Columns.Add(this.colSalaryMinusBefore);
            this.gridBand9.Columns.Add(this.colWorkSalary1);
            this.gridBand9.Name = "gridBand9";
            this.gridBand9.Width = 0xe1;
            this.gridBand10.AppearanceHeader.ForeColor = Color.Brown;
            this.gridBand10.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand10.Caption = "Thuế thu nhập c\x00e1 nh\x00e2n";
            this.gridBand10.Columns.Add(this.colIncomeTax);
            this.gridBand10.Columns.Add(this.colNumberDepend);
            this.gridBand10.Columns.Add(this.colDependMoney);
            this.gridBand10.Columns.Add(this.colIncomeTaxRemain);
            this.gridBand10.Columns.Add(this.colIncomeTaxMoney);
            this.gridBand10.Columns.Add(this.colRemainSalary);
            this.gridBand10.Name = "gridBand10";
            this.gridBand10.Width = 0x1dd;
            this.gridBand11.AppearanceHeader.ForeColor = Color.Blue;
            this.gridBand11.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand11.Caption = "Sau thuế";
            this.gridBand11.Columns.Add(this.colAdvance);
            this.gridBand11.Columns.Add(this.colSalaryPlus);
            this.gridBand11.Columns.Add(this.colSalaryMinus);
            this.gridBand11.Name = "gridBand11";
            this.gridBand11.Width = 0xe1;
            this.gridBand1.AppearanceHeader.ForeColor = Color.Red;
            this.gridBand1.AppearanceHeader.Options.UseForeColor = true;
            this.gridBand1.Caption = "Thực l\x00e3nh && Thanh to\x00e1n lương";
            this.gridBand1.Columns.Add(this.colSalary);
            this.gridBand1.Columns.Add(this.colSalaryPay);
            this.gridBand1.Columns.Add(this.colSalaryDebt);
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0xea;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucSalaryByEmployee";
            base.Size = new Size(0x431, 0x27b);
            this.repCalculator.EndInit();
            this.barManager1.EndInit();
            this.repEmployee.EndInit();
            this.repositoryItemGridLookUpEdit1View.EndInit();
            this.repEmployeeName.EndInit();
            this.repYear.EndInit();
            this.imageCollection2.EndInit();
            this.repMonth.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            base.ResumeLayout(false);
        }

        private void InitMultiLanguages()
        {
            this.colEmployeeCode.Caption = MultiLanguages.GetString("tbl_Salary", "EmployeeCode", this.colEmployeeCode.Caption);
            this.colFirstName.Caption = MultiLanguages.GetString("tbl_Salary", "FirstName", this.colFirstName.Caption);
            this.colLastName.Caption = MultiLanguages.GetString("tbl_Salary", "LastName", this.colLastName.Caption);
            this.colCoefficientSalary.Caption = MultiLanguages.GetString("tbl_Salary", "CoefficientSalary", this.colCoefficientSalary.Caption);
            this.colBasicSalary.Caption = MultiLanguages.GetString("tbl_Salary", "BasicSalary", this.colBasicSalary.Caption);
            this.colInsuranceSalary.Caption = MultiLanguages.GetString("tbl_Salary", "InsuranceSalary", this.colInsuranceSalary.Caption);
            this.colStipulatedTime.Caption = MultiLanguages.GetString("tbl_Salary", "StipulatedTime", this.colStipulatedTime.Caption);
            this.colWorkHour.Caption = MultiLanguages.GetString("tbl_Salary", "WorkHour", this.colWorkHour.Caption);
            this.colLateEarlyHour.Caption = MultiLanguages.GetString("tbl_Salary", "LateEarlyHour", this.colLateEarlyHour.Caption);
            this.colMinusLateEarly.Caption = MultiLanguages.GetString("tbl_Salary", "MinusLateEarly", this.colMinusLateEarly.Caption);
            this.colMinusMoney.Caption = MultiLanguages.GetString("tbl_Salary", "MinusMoney", this.colMinusMoney.Caption);
            this.colAllowanceInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "AllowanceInsurance", this.colAllowanceInsurance.Caption);
            this.colAllowance.Caption = MultiLanguages.GetString("tbl_Salary", "Allowance", this.colAllowance.Caption);
            this.colTotalSalary.Caption = MultiLanguages.GetString("tbl_Salary", "TotalSalary", this.colTotalSalary.Caption);
            this.colSocialInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "SocialInsurance", this.colSocialInsurance.Caption);
            this.colHealthInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "HealthInsurance", this.colHealthInsurance.Caption);
            this.colUnemploymentInsurance.Caption = MultiLanguages.GetString("tbl_Salary", "UnemploymentInsurance", this.colUnemploymentInsurance.Caption);
            this.colUnion.Caption = MultiLanguages.GetString("tbl_Salary", "Union", this.colUnion.Caption);
            this.colIncomeTax.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTax", this.colIncomeTax.Caption);
            this.colNumberDepend.Caption = MultiLanguages.GetString("tbl_Salary", "NumberDepend", this.colNumberDepend.Caption);
            this.colDependMoney.Caption = MultiLanguages.GetString("tbl_Salary", "DependMoney", this.colDependMoney.Caption);
            this.colIncomeTaxRemain.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTaxRemain", this.colIncomeTaxRemain.Caption);
            this.colIncomeTaxMoney.Caption = MultiLanguages.GetString("tbl_Salary", "IncomeTaxMoney", this.colIncomeTaxMoney.Caption);
            this.colRemainSalary.Caption = MultiLanguages.GetString("tbl_Salary", "RemainSalary", this.colRemainSalary.Caption);
            this.colAdvance.Caption = MultiLanguages.GetString("tbl_Salary", "Advance", this.colAdvance.Caption);
            this.colAssignment.Caption = MultiLanguages.GetString("tbl_Salary", "Assignment", this.colAssignment.Caption);
            this.colSalaryPlus.Caption = MultiLanguages.GetString("tbl_Salary", "SalaryPlus", this.colSalaryPlus.Caption);
            this.colSalaryMinus.Caption = MultiLanguages.GetString("tbl_Salary", "SalaryMinus", this.colSalaryMinus.Caption);
            this.colSalary.Caption = MultiLanguages.GetString("tbl_Salary", "Salary", this.colSalary.Caption);
        }

        private void LoadEmployeeYear()
        {
            this.repEmployee.DataSource = new HRM_EMPLOYEE().GetListByYear(MyLogin.Level, MyLogin.Code, this.m_Year);
            this.repEmployee.DisplayMember = "EmployeeCode";
            this.repEmployee.ValueMember = "EmployeeCode";
        }

        private void LoadSalaryYear()
        {
            this.gcList.DataSource = new HRM_SALARY().GetSalaryByYear(this.m_EmployeeCode, this.m_Year);
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void repEmployee_EditValueChanged(object sender, EventArgs e)
        {
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            hrm_employee.Get(this.m_EmployeeCode);
            this.bbeEmployeeName.EditValue = hrm_employee.FirstName + " " + hrm_employee.LastName;
            this.LoadSalaryYear();
        }

        private void repEmployee_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_EmployeeCode = e.NewValue.ToString();
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadEmployeeYear();
            this.LoadSalaryYear();
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        public delegate void ClosedHander(object sender);
    }
}

